const fs = require("fs");
const config = require('../../config/config');
const mysql = require("mysql2")
// create the connection to database
const connection = mysql.createConnection({
  host:config.host,
  user: config.username,
  password:config.password,
  database: config.database
});

connection.query("SELECT * from users",function (err, results, fields) {
  console.log(JSON.stringify(results));
});